<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * Class WechatFan
 */
class WechatFans extends Model
{
    protected $table = 'pw_wechat_fans';

    public $timestamps = false;

    protected $fillable = [
        'threaduserid',
        'subscribe',
        'openid',
        'nickname',
        'sex',
        'language',
        'city',
        'province',
        'country',
        'headimgurl',
        'subscribe_time',
        'unionid',
        'remark',
        'groupid',
        'tagid_list',
        'event_key'
    ];

    protected $guarded = [];

    public function scene(){
        return $this->hasOne(WechatQrcode::class, "id", "event_key");
    }

        
}